# CMake 最低版本号要求
cmake_minimum_required (VERSION 2.8)

# 项目信息
project (test_prj CXX)


# include directories
INCLUDE_DIRECTORIES(system ../include/)
INCLUDE_DIRECTORIES(after  ${PROJECT_SOURCE_DIR})


# 查找当前目录下的所有源文件
# 并将名称保存到 DIR_SRCS 变量
file(GLOB_RECURSE SRCS  ${PROJECT_SOURCE_DIR} "../src/*.cpp"
"../external/CppProto/test/unit_test.cpp"
"../external/CppProto/src/Rpc.cpp")
file(GLOB_RECURSE SRCS2  ${PROJECT_SOURCE_DIR} "*.cpp")

# 指定生成目标
ADD_EXECUTABLE(testSvr ${SRCS} ${SRCS2})

#设置依赖
#ADD_DEPENDENCIES(testSvr libcevent_cpp.a)

# 设置链接库
target_link_libraries(testSvr cevent_cpp.a)


